extends Talent

func init():
	name = "防守反击"
func _connect():
	sys.main.connect("onBattleStart",self,"run5")

func run5():
	for i in sys.main.btChas:
		if i.team == 1:
			i.addBuff(b_fangshoufj.new(lv))
#18 21 24 27 30
func get_info():
	return "我方角色获得[%d%%]反伤"%[15+3*lv]

class b_fangshoufj extends "../../azurlane_ctrl/AzurBuff.gd":
	var tlv = 1
	func _init(tlv):
		attInit()
		id = "b_fangshoufj"
		dispel = 2
		self.tlv = tlv
	func _connect():
		._connect()
		masCha.connect("onHurt", self, "onHurt")
	func onHurt(atkInfo):
		atkInfo.fanShang += (0.15 + 0.03*tlv)


